﻿/// ****************************************************************************
/// Author:	        Robin Zhu
/// Create Date:	2012-4-16
/// Purpose: 		验证服务接口
/// ****************************************************************************
/// Modify By		Date			Remark
/// Robin           2012-4-24       为接口增加WCF的特性
/// ****************************************************************************
/// 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace RB.Web.Security
{
    [ServiceContract]
    public interface IAuthenticateService
    {
        [OperationContract]
        UserSession GetSession(string appCode, string ticket, int userIsOnlineTimeWindow);

        [OperationContract(IsOneWay = true)]
        void SignOut(string ticket);

        [OperationContract]
        UserSession CreateSession(string appCode, string username, string ipAddress, string httpForwarded);

        [OperationContract(IsOneWay = true)]
        void LogPasswordAttemp(string appCode, string username, string password, string ipAddress, string httpForwarded);
    }
}
